package com.axxy.observer;

import java.util.Arrays;
import java.util.List;

/**
 * @author 一缕茜阳
 * @date 2021/7/15
 */
public abstract class Subject {

    String subjectName;

    abstract void register(Observer observer);

    abstract void remove(Observer observer);

    abstract void notifyObservers();

    void getSubject(){
        System.out.println("主题名： " + subjectName);
    }
}
